--ffscreen
ENT.Base = "base_entity"
ENT.Type = "anim"

ENT.fixedvector = Vector(23,48.5,16.5)
ENT.size = Vector(33,46,0)

ENT.res = 4
ENT.btnPay = {}
ENT.btnPay.w = ENT.size.x*ENT.res/3
ENT.btnPay.h = ENT.btnPay.w*2/3
ENT.btnPay.x = ENT.size.x*ENT.res/2
ENT.btnPay.y = ENT.size.y*ENT.res*0.8 - ENT.btnPay.h/2

function ENT:Getcpos(ply)
	local trace = ply:GetEyeTraceNoCursor()
	cpos = self.Entity:WorldToLocal(trace.HitPos)

	cpos.x = cpos.y + self.fixedvector.z
	cpos.y = cpos.z*-1 + self.fixedvector.y
	
	return cpos, trace.Entity
end

function ENT:Hovered(cpos,x,y,w,h)
	if (cpos.x >= x) && (cpos.x <= x+w) && (cpos.y >= y) && (cpos.y <= y+h) then
		return true
	end
	return false
end


